package com.czy.booktest02.demos.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
public class UserDto {
    @NotBlank(message = "账号不能为空")
    @NotNull
    private String name;
    @NotBlank(message = "密码不能为空")
    @NotNull
    private String pwd;
    @NotBlank(message = "真实姓名不能为空")
    @NotNull
    private String realName;
    @NotBlank(message = "性别不能为空")
    @NotNull
    private String gender;
    @NotBlank(message = "邮箱不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$",message = "")
    private String email;


}
